<?php
/////////////////////////////////////////////////
// This function use for migrate raw data to temp data
/////////////////////////////////////////////////

function VoteDataCenter_election_report(){

  $render = pnRender::getInstance('VoteDataCenter');




  $jsonurl = "http://demap.dyndns.org/surat/json/president_khet1.json";
  $json = file_get_contents($jsonurl,0,null,null);
  $objectArray = json_decode($json);

  //print_r($json_output);


  $render->assign('objectArray', $objectArray);

  return $render->fetch('user_election_report.htm');

}



function VoteDataCenter_election_edit(){

  $render = pnRender::getInstance('VoteDataCenter');

  $render->assign('objectArray', $objectArray);

  return $render->fetch('admin_election_report.htm');

}
?>